#include <stdlib.h>
#include <string.h>
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>


struct S
{
	int a;
	float s;
	char str[10];
};
int main()
{
	char arr[30] = { 0 };
	struct S s = { 100,3.14f,"hehe" };
	struct S tmp = { 0 };
	sprintf_s(arr, "%d %f %s", s.a, s.s, s.str);

	printf("%s", arr);
	sscanf_s(arr, "%d %f %s", &(tmp.a), &(tmp.s), tmp.str);
	printf("%d %f %s", tmp.a, tmp.s, tmp.str);
	return 0;
}